6b0a0bcdbaf2047abb43bcece7bbc856fbbed8ba,wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WMultiSelectRenderer.java,WMultiSelectRenderer,doRender,#WComponent#WebXmlRenderContext#,25

Before Change


		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("data", dataKey != null && !readOnly, dataKey);
		xml.appendOptionalAttribute("disabled", listBox.isDisabled(), "true");
		xml.appendOptionalAttribute("hidden", listBox.isHidden(), "true");
		xml.appendOptionalAttribute("required", listBox.isMandatory(), "true");
		xml.appendOptionalAttribute("readOnly", readOnly, "true");
		xml.appendOptionalAttribute("submitOnChange", listBox.isSubmitOnChange(), "true");
		xml.appendOptionalAttribute("tabIndex", component.hasTabIndex(), listBox.getTabIndex());
		xml.appendOptionalAttribute("toolTip", component.getToolTip());
		xml.appendOptionalAttribute("accessibleText", component.getAccessibleText());
		xml.appendOptionalAttribute("rows", rows >= 2, rows);
		xml.appendOptionalAttribute("min", min > 0, min);
		xml.appendOptionalAttribute("max", max > 0, max);
		xml.appendClose();

		// Options

After Change


		WMultiSelect listBox = (WMultiSelect) component;
		XmlStringBuilder xml = renderContext.getWriter();
		String dataKey = listBox.getListCacheKey();
		boolean readOnly = listBox.isReadOnly();
		int rows = listBox.getRows();
		int min = listBox.getMinSelect();
		int max = listBox.getMaxSelect();

		xml.appendTagOpen("ui:listbox");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("hidden", listBox.isHidden(), "true");
		if (readOnly) {
			xml.appendAttribute("readOnly", "true");
		} else {
			xml.appendOptionalAttribute("data", dataKey != null && !readOnly, dataKey);
			xml.appendOptionalAttribute("disabled", listBox.isDisabled(), "true");
			xml.appendOptionalAttribute("required", listBox.isMandatory(), "true");
			xml.appendOptionalAttribute("submitOnChange", listBox.isSubmitOnChange(), "true");
			xml.appendOptionalAttribute("tabIndex", component.hasTabIndex(), listBox.getTabIndex());
			xml.appendOptionalAttribute("toolTip", component.getToolTip());
			xml.appendOptionalAttribute("accessibleText", component.getAccessibleText());
			xml.appendOptionalAttribute("rows", rows >= 2, rows);
			xml.appendOptionalAttribute("min", min > 0, min);
			xml.appendOptionalAttribute("max", max > 0, max);
		}
		xml.appendClose();